package gwtappcontainer.server;

import java.util.Date;

import gwtappcontainer.shared.ViewProp;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

@Entity
public class ViewStatsEntity {
	@Id public Long id;
	
	public String app;
	public String view;
	public String params;
	public String ip;
	public Date timeStamp = new Date();
	
	public ViewStatsEntity() {}
	
	public ViewStatsEntity(ViewProp prop) {
		app = prop.app;
		view = prop.view;
		params = prop.getParamsAsString();		
	}					
}
